package model

import (
	"AccessAdmin/internal/model/entity"
)

// AttachmentGetListInput 查询附件资源列表
type AttachmentGetListInput struct {
	Page   int    // 分页码
	Size   int    // 分页数量
	Name   string // 文件名
	Status int    // 状态
}

// AttachmentGetListOutput 查询附件资源结果
type AttachmentGetListOutput struct {
	List  []entity.Attachment `json:"list"`  // 列表
	Page  int                 `json:"page"`  // 分页码
	Size  int                 `json:"size"`  // 分页数量
	Total int                 `json:"total"` // 数据总数
}

type AttachmentCreateUpdateBase struct {
	CateId       uint
	Drive        string
	UploadType   string
	SpecificType string
	Path         string
	Md5          string
	Name         string
	Extension    string
	Size         int
	Year         string
	Month        string
	Day          string
	Width        int
	Height       int
	UploadIp     string
	Status       int
}

type AttachmentCreateInput struct {
	AttachmentCreateUpdateBase
}

type AttachmentCreateOutput struct {
	AttachmentId uint `json:"attachment_id"`
}

type AttachmentUpdateInput struct {
	Id uint
	AttachmentCreateUpdateBase
}

// AttachmentGetDetailInput 获取详情
type AttachmentGetDetailInput struct {
	Id uint
}

// AttachmentGetDetailOutput 获取详情结果
type AttachmentGetDetailOutput struct {
	CateName string
	entity.Attachment
}
